class Cat:
  #初始化对象
  def __init__(self,ii):
    print('init....')
    self.sex=ii
  def __str__(self):
    return self.sex
  def eat(self):
    print('猫在吃鱼...')
  def drink(self):
    print('猫在喝水...')
  def introduce(this, ha):
    print('%s的年龄是：%d,性别是%s'%(this.name,this.age,this.sex))
    print(ha)


tom = Cat('male')
tom.name = 'zhy'
tom.age = 13
tom.eat()
tom.drink()
tom.introduce('haha')
print(tom)

